import api from "../../api"

const getDepartmentsList = function (params) {
  return api.getRequest(api.requestURL + 'web' + api.apiVer + 'departments', params)
}

// 获取全部部门列表
const getDepartmentsAllList = function (params) {
  return api.getRequest(api.requestURL + 'web' + api.apiVer + 'departments/listAll', params)
}

export default {
  getDepartmentsList,
  getDepartmentsAllList
}
